import { configureStore } from '@reduxjs/toolkit'
import ListSlice from './ListSlice'
import { apiSlice } from './ApiSlice'
import { RtkSlice } from './RTKQuery'

export default configureStore({
    reducer: {
        shopList: ListSlice,
        [apiSlice.reducerPath]: apiSlice.reducer,
        [RtkSlice.reducerPath]: RtkSlice.reducer
    },
    middleware: getDefaultMiddleware =>
        getDefaultMiddleware().concat(apiSlice.middleware).concat(RtkSlice.middleware)
})